#docker file to build android linux build image
FROM ubuntu:14.04

MAINTAINER zuoshu@iqing.in

USER root

COPY docker/sources.list /etc/apt/sources.list

ENV JAVA_HOME /jdk1.7.0_79
ENV PATH ${PATH}:${JAVA_HOME}/bin/

RUN apt-get update && apt-get install -y --no-install-recommends git wget
# expect lib32stdc++6 lib32z1

RUN cd / && wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz &&\
    tar xf jdk-7u79-linux-x64.tar.gz \
    && rm -rf $JAVA_HOME/src.zip $JAVA_HOME/javafx-src.zip $JAVA_HOME/man /jdk-7u79-linux-x64.tar.gz

ENTRYPOINT /bin/bash